package com.hopedove.utils;

import android.content.Context;
import android.widget.Toast;

import androidx.annotation.Nullable;

import com.hopedove.net.domain.StringParamRequest;

public class ToastUtil {

    public static void longToast(Context context, String msg) {
        toast(context, msg, Toast.LENGTH_LONG);
    }

    public static void shortToast(Context context, String msg) {
        toast(context, msg, Toast.LENGTH_SHORT);
    }

    private static void toast(Context context, String msg, int dur) {
        Toast.makeText(context, msg, dur).show();
    }
}
